package com.wholesale.utils;

import android.view.View;
import android.widget.TextView;

import com.wholesale.R;

public class UserAddressCache {
	private View baseView;
	private TextView fullName;
	private TextView phone;
	private TextView countryName;
	private TextView proviceName;
	private TextView cityName;
	private TextView detailAddress;
	private TextView postalCode;
	
	public UserAddressCache(View baseView) {
		this.baseView = baseView;
	}
	public TextView getFullNameView() {
		if(fullName == null){
			fullName = (TextView)baseView.findViewById(R.id.fullname_text);
		}
		return fullName;
	}
	public TextView getPhoneView() {
		if(phone == null){
			phone = (TextView)baseView.findViewById(R.id.phone_text);
		}
		return phone;
	}
	public TextView getCountryNameView() {
		if(countryName == null){
			countryName = (TextView)baseView.findViewById(R.id.countryName_text);
		}
		return countryName;
	}
	public TextView getProviceNameView() {
		if(proviceName == null){
			proviceName = (TextView)baseView.findViewById(R.id.provinceName_text);
		}
		return proviceName;
	}
	public TextView getCityNameView() {
		if(cityName == null){
			cityName = (TextView)baseView.findViewById(R.id.cityName_text);
		}
		return cityName;
	}
	public TextView getDetailAddressView() {
		if(detailAddress == null){
			detailAddress = (TextView)baseView.findViewById(R.id.address_text);
		}
		return detailAddress;
	}
	
	public TextView getPostalCodeView() {
		if(postalCode == null){
			postalCode = (TextView)baseView.findViewById(R.id.postalCode_text);
		}
		return postalCode;
	}

	
	
}



